<{include file="header.tpl"}>
    <div class="comBox">
        <div class="comHeader">
            <form action="" method="GET">
                <input type="hidden" name="ct" value="users" />
                <input type="hidden" name="ac" value="login_log" />
                关键字：
                <input type='text' name='keyword' style='width:200px;' class='txt' value="<{request_em key='keyword'}>" />
                <input type="submit" value="搜索" class="sub" /> 
            </form>
        </div>
        <div class="comTable">
            <form action="" method="POST" id="form1">
            <table class="tableSort">
                <tr class="title">
                    <td> 选择 </td>
                    <td> 用户id </td>
                    <td> 用户名 </td>
                    <td> 登录ip </td>
                    <td> 登录时间 </td>
                    <td> 应用池 </td>
                    <td> 登录时状态 </td>
                </tr>
                <{if !empty($list)}>
                <{foreach from=$list item=v}>
                <tr>
                    <td> <input type='checkbox' name='autoid[]' value='<{$v.autoid}>' rel="child" /> </td>
                    <td> <{$v.uid}> </td>
                    <td> <{$v.accounts}> </td>
                    <td> <{$v.loginip}> </td>
                    <td> <{$v.logintime|date_format:"%Y-%m-%d %H:%M:%S"}> </td>
                    <td> <{$v.pools}> </td>
                    <td> <{if $v.loginsta==1}>成功<{else}><font color='red'>失败</font><{/if}> </td>
                </tr>
                <{/foreach}>
                <{/if}>
                <tr>
                    <td colspan="11" class="tl">
                        <div class="fl">
                            <label><input type="checkbox" id="checkAll" rel="parent"/> 全选</label> 
                            <input type="submit" value="批量删除" class="sub" onclick="subform('?ct=users&ac=login_log_del')" />
                            <a href="?ct=users&ac=del_old_login_log" onclick="return confirm('你确定要清空三个月前记录？(系统会备份一份记录到文本)')" class="sub">清空三个月前记录</a>
                        </div>
                        <div class="pages fr">
                            <{$pages}>
                        </div>
                    </td>
                </tr>
            </table>
            </form>
        </div>
    </div>
<{include file="footer.tpl"}>
